from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from tweets import views
from tweets.views import TweetViewSet
# from tweets.views import TweetView, CommentViwe


urlpatterns = [
    # url(r'^tweets/$', TweetViewSet.as_view({'get': 'list'})),
    # url(r'^tweets/(?P<pk>\d+)/$', TweetViewSet.as_view({'get': 'one'}))
]

router = DefaultRouter()
router.register(r'tweets', views.TweetViewSet, base_name='tweet')

urlpatterns += router.urls